package com.mxw.account.mapper.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "account")
public class Account {
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "account_code")
    private String accountCode;

    @TableField(value = "account_name")
    private String accountName;

    @TableField(value = "amount")
    private BigDecimal amount;
}